package cn.micai.base.executor;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/7/17 11:14
 * @Description: 自定义线程工厂
 */
public class MyThreadFactory implements ThreadFactory {

    private final String poolName;

    public MyThreadFactory(String poolName) {
        this.poolName = poolName;
    }

    @Override
    public Thread newThread(Runnable runnable) {
        return new MyAppThread(runnable, poolName);
    }
}
